<?php
session_start();
date_default_timezone_set('PRC');
header("Content-type:text/html; charset=UTF-8");
$db_config = array(
    'host' => '127.0.0.1',
    'port' => 3306,
    'user' => 'root',
    'pwd' => '123456',
    'dbname' => 'test'
);


define('ADMIN_FOLDER', '');        
define('WEBSITE_ROOT_BASE', rtrim(str_replace('\\', '/', str_replace(ADMIN_FOLDER, '', dirname(__FILE__))),'\/'));
//E:/www/zongxiao
define('PATH_UPLOAD', WEBSITE_ROOT_BASE . '/upload/');
define('PATH_CONTRALLERS', WEBSITE_ROOT_BASE . '/controllers/');
define('PATH_MODULE', WEBSITE_ROOT_BASE . '/module/');
define('PATH_QUANJU', WEBSITE_ROOT_BASE . '/quanju/');
define('PATH_VIEW', WEBSITE_ROOT_BASE . '/view/');

define('DOMAIN_NAME', '.zongxiao.me');
define('DOMAIN_NAME_WWW', 'http://www' . DOMAIN_NAME);
define('DOMAIN_NAME_USER', 'http://user' . DOMAIN_NAME);

define('HTTP_UI', DOMAIN_NAME_WWW . '/ui/');
define('HTTP_UPLOAD', DOMAIN_NAME_WWW . '/upload/');